import MySQLdb

#connect to mysql server
def cur():
	database = MySQLdb.connect(db='market', host='localhost', user='root', passwd='promise')
	return database.cursor()
